Optimal. Leaf size=54 \[ 3 a^2 A b x+\frac {3}{2} a A b^2 x^2+\frac {1}{3} A b^3 x^3+\frac {B (a+b x)^4}{4 b}+a^3 A \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {81, 45}
\begin {gather*} a^3 A \log (x)+3 a^2 A b x+\frac {3}{2} a A b^2 x^2+\frac {B (a+b x)^4}{4 b}+\frac {1}{3} A b^3 x^3 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 81
Rubi steps
\begin {align*} \int \frac {(a+b x)^3 (A+B x)}{x} \, dx &=\frac {B (a+b x)^4}{4 b}+A \int \frac {(a+b x)^3}{x} \, dx\\ &=\frac {B (a+b x)^4}{4 b}+A \int \left (3 a^2 b+\frac {a^3}{x}+3 a b^2 x+b^3 x^2\right ) \, dx\\ &=3 a^2 A b x+\frac {3}{2} a A b^2 x^2+\frac {1}{3} A b^3 x^3+\frac {B (a+b x)^4}{4 b}+a^3 A \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 63, normalized size = 1.17 \begin {gather*} \frac {1}{12} x \left (12 a^3 B+18 a^2 b (2 A+B x)+6 a b^2 x (3 A+2 B x)+b^3 x^2 (4 A+3 B x)\right )+a^3 A \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 70, normalized size = 1.30
method | result | size |
norman | \(\left (\frac {1}{3} b^{3} A +a \,b^{2} B \right ) x^{3}+\left (\frac {3}{2} a \,b^{2} A +\frac {3}{2} a^{2} b B \right ) x^{2}+\left (3 a^{2} b A +a^{3} B \right ) x +\frac {b^{3} B \,x^{4}}{4}+a^{3} A \ln \left (x \right )\) | \(69\) |
default | \(\frac {b^{3} B \,x^{4}}{4}+\frac {A \,b^{3} x^{3}}{3}+B a \,b^{2} x^{3}+\frac {3 a A \,b^{2} x^{2}}{2}+\frac {3 B \,a^{2} b \,x^{2}}{2}+3 a^{2} A b x +a^{3} B x +a^{3} A \ln \left (x \right )\) | \(70\) |
risch | \(\frac {b^{3} B \,x^{4}}{4}+\frac {A \,b^{3} x^{3}}{3}+B a \,b^{2} x^{3}+\frac {3 a A \,b^{2} x^{2}}{2}+\frac {3 B \,a^{2} b \,x^{2}}{2}+3 a^{2} A b x +a^{3} B x +a^{3} A \ln \left (x \right )\) | \(70\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.32, size = 68, normalized size = 1.26 \begin {gather*} \frac {1}{4} \, B b^{3} x^{4} + A a^{3} \log \left (x\right ) + \frac {1}{3} \, {\left (3 \, B a b^{2} + A b^{3}\right )} x^{3} + \frac {3}{2} \, {\left (B a^{2} b + A a b^{2}\right )} x^{2} + {\left (B a^{3} + 3 \, A a^{2} b\right )} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.76, size = 68, normalized size = 1.26 \begin {gather*} \frac {1}{4} \, B b^{3} x^{4} + A a^{3} \log \left (x\right ) + \frac {1}{3} \, {\left (3 \, B a b^{2} + A b^{3}\right )} x^{3} + \frac {3}{2} \, {\left (B a^{2} b + A a b^{2}\right )} x^{2} + {\left (B a^{3} + 3 \, A a^{2} b\right )} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.06, size = 73, normalized size = 1.35 \begin {gather*} A a^{3} \log {\left (x \right )} + \frac {B b^{3} x^{4}}{4} + x^{3} \left (\frac {A b^{3}}{3} + B a b^{2}\right ) + x^{2} \cdot \left (\frac {3 A a b^{2}}{2} + \frac {3 B a^{2} b}{2}\right ) + x \left (3 A a^{2} b + B a^{3}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.40, size = 70, normalized size = 1.30 \begin {gather*} \frac {1}{4} \, B b^{3} x^{4} + B a b^{2} x^{3} + \frac {1}{3} \, A b^{3} x^{3} + \frac {3}{2} \, B a^{2} b x^{2} + \frac {3}{2} \, A a b^{2} x^{2} + B a^{3} x + 3 \, A a^{2} b x + A a^{3} \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 63, normalized size = 1.17 \begin {gather*} x\,\left (B\,a^3+3\,A\,b\,a^2\right )+x^3\,\left (\frac {A\,b^3}{3}+B\,a\,b^2\right )+\frac {B\,b^3\,x^4}{4}+A\,a^3\,\ln \left (x\right )+\frac {3\,a\,b\,x^2\,\left (A\,b+B\,a\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________